package com.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.model.SysMenu;
import com.model.SysUser;

@Component
public interface SysUserDao {

    /**
     * 查询用户
     * 
     * @param parMap
     * @return
     */
    public List<SysUser> get(Map<String, Object> parMap);

    /**
     * 查询菜单
     * 
     * @param parMap
     * @return
     */
    public List<SysMenu> getmenu(Map<String, Object> parMap);
    public List<SysMenu> getmenuAll(Map<String, Object> parMap);
    

    /**
     * 更新用户
     * 
     * @param sysUser
     */
    public void edit(SysUser sysUser);

    /**
     * 删除用户
     * 
     * @param id
     * @return
     */
    public int delete(Integer id);

    /**
     * 查询用户
     *
     * @param id
     * @return
     */
    public SysUser getById(Long id);
}
